<?php 
//by Suvi...
include 'lib/auth.php';
include "konek.php";

session_start();
$username = mysql_escape_string($_POST["username"]); 
$password = mysql_escape_string($_POST["password"]);

$auth = new auth();

if($auth->login($username, $password)){
	header('location:view/home_technopreneur.php');
}
else {
	header('location:login.php?message=warning');
}
